<template>
    <div>
    <h3>{{info.title}}</h3>

    <div v-html="info.content" class="desc"></div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            info: {},
        }
    },
    created(){
        this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            this.$http.get('http://www.liulongbin.top:3005/api/goods/getdesc/' + this.$route.params.id).then(result => {
                if(result.body.status ===0 ){
                    this.info = result.body.message[0];
                }
            })
        },
    }
}
</script>

<style lang="scss">
.desc {
    img{
        width: 100%;
    }
}
</style>
